def log(level):
    def decoder(fun):
        def wrapper(*args, **kwargs):
            print(f"{level}:方法调用前")
            result = fun(*args, **kwargs)
            print(f"{level}:方法调用后")
            return result

        return wrapper
    return decoder


@log(level="INFO")
def hello():
    print("Hello,World")


if __name__ == '__main__':
    hello()
